<script setup lang="ts">
import { RouterView } from 'vue-router'
import Nav from './components/nav.vue'
</script>

<template>
  <div class="main-content">
      <div class="header">
        <Nav />
      </div>
      <div class="main-show">
        <router-view></router-view>
      </div>
    </div>
</template>

<style scoped>
/* 重置 #app 的默认样式 */
#app {
  margin: 0 auto;
  height: 100vh;
  width: 400px;
  font-family: sans-serif;
  /* 可按需修改字体 */
  /* 如果你不需要任何默认背景或样式 */
  background-color: gray;
  overflow: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE 和 Edge 隐藏滚动条 */
  scrollbar-width: none;
  /* Firefox 隐藏滚动条 */
  overflow-y: auto;
  /* 保持垂直滚动功能 */
  /* border: 2px solid rgb(0, 0, 0); */
  border-radius: 1px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
}

.header {
  width: 400px;
  margin: 0 auto;
  align-items: center;
  position: fixed;
  z-index: 999;
  border-radius: 1px;
  top: 0;
}

.main-content {
  width: 400px;
  margin: 0 auto;
  align-items: center;
  margin-top: 35px;
}

.main-show {
  width: 400px;
  margin: 0 auto;
  align-items: center;
  margin-top: 50px;
}
</style>
